package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 新闻对象 info
 * 
 * @author ruoyi
 * @date 2022-12-02
 */
public class Info extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** infoid */
    private String infoid;

    /** 标题 */
    @Excel(name = "标题")
    private String infotitle;

    /** 正文 */
    @Excel(name = "正文")
    private String infocontent;

    /** 是否通过 */
    @Excel(name = "是否通过")
    private Long checkpass;

    /** 添加时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "添加时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date addtime;

    /** 新闻封面配图地址 */
    @Excel(name = "新闻封面配图地址")
    private String picurl;

    /** 转向地址 */
    @Excel(name = "转向地址")
    private String returnurl;

    /** 点击数 */
    @Excel(name = "点击数")
    private String clicknum;

    /** 摘要 */
    @Excel(name = "摘要")
    private String summary;

    /** 肩题 */
    @Excel(name = "肩题")
    private String jianti;

    /** 小标题 */
    @Excel(name = "小标题")
    private String infotitle2;

    /** 作者 */
    @Excel(name = "作者")
    private String author;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date releasetime;

    public void setInfoid(String infoid) 
    {
        this.infoid = infoid;
    }

    public String getInfoid() 
    {
        return infoid;
    }
    public void setInfotitle(String infotitle) 
    {
        this.infotitle = infotitle;
    }

    public String getInfotitle() 
    {
        return infotitle;
    }
    public void setInfocontent(String infocontent) 
    {
        this.infocontent = infocontent;
    }

    public String getInfocontent() 
    {
        return infocontent;
    }
    public void setCheckpass(Long checkpass) 
    {
        this.checkpass = checkpass;
    }

    public Long getCheckpass() 
    {
        return checkpass;
    }
    public void setAddtime(Date addtime) 
    {
        this.addtime = addtime;
    }

    public Date getAddtime() 
    {
        return addtime;
    }
    public void setPicurl(String picurl) 
    {
        this.picurl = picurl;
    }

    public String getPicurl() 
    {
        return picurl;
    }
    public void setReturnurl(String returnurl) 
    {
        this.returnurl = returnurl;
    }

    public String getReturnurl() 
    {
        return returnurl;
    }
    public void setClicknum(String clicknum) 
    {
        this.clicknum = clicknum;
    }

    public String getClicknum() 
    {
        return clicknum;
    }
    public void setSummary(String summary) 
    {
        this.summary = summary;
    }

    public String getSummary() 
    {
        return summary;
    }
    public void setJianti(String jianti) 
    {
        this.jianti = jianti;
    }

    public String getJianti() 
    {
        return jianti;
    }
    public void setInfotitle2(String infotitle2) 
    {
        this.infotitle2 = infotitle2;
    }

    public String getInfotitle2() 
    {
        return infotitle2;
    }
    public void setAuthor(String author) 
    {
        this.author = author;
    }

    public String getAuthor() 
    {
        return author;
    }
    public void setReleasetime(Date releasetime) 
    {
        this.releasetime = releasetime;
    }

    public Date getReleasetime() 
    {
        return releasetime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("infoid", getInfoid())
            .append("infotitle", getInfotitle())
            .append("infocontent", getInfocontent())
            .append("checkpass", getCheckpass())
            .append("addtime", getAddtime())
            .append("picurl", getPicurl())
            .append("returnurl", getReturnurl())
            .append("clicknum", getClicknum())
            .append("summary", getSummary())
            .append("jianti", getJianti())
            .append("infotitle2", getInfotitle2())
            .append("author", getAuthor())
            .append("releasetime", getReleasetime())
            .toString();
    }
}
